<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录失败</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #333;
        }

        .container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            padding: 40px;
            text-align: center;
            max-width: 500px;
            width: 90%;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .icon {
            font-size: 5rem;
            color: #e74c3c;
            margin-bottom: 20px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        h1 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: #e74c3c;
        }

        p {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 30px;
            color: #555;
        }

        .reason {
            background: #fff5f5;
            border-left: 4px solid #e74c3c;
            padding: 15px;
            margin: 20px 0;
            text-align: left;
            border-radius: 0 8px 8px 0;
        }

        .btn {
            display: inline-block;
            padding: 15px 30px;
            background: linear-gradient(45deg, #3498db, #2980b9);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin: 10px;
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .btn-retry {
            background: linear-gradient(45deg, #2ecc71, #27ae60);
        }

        .btn-home {
            background: linear-gradient(45deg, #9b59b6, #8e44ad);
        }

        .tips {
            margin-top: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            text-align: left;
        }

        .tips h3 {
            color: #3498db;
            margin-bottom: 10px;
        }

        .tips ul {
            padding-left: 20px;
        }

        .tips li {
            margin-bottom: 8px;
            color: #555;
        }

        footer {
            margin-top: 30px;
            color: #718096;
            font-size: 0.9rem;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="icon">⚠️</div>
    <h1>登录失败</h1>
    <p>抱歉，您的登录尝试未能成功。</p>

    <div class="reason">
        <strong>可能的原因：</strong>
        <ul>
            <li>用户名或密码不正确</li>
            <li>账户已被锁定</li>
            <li>网络连接问题</li>
        </ul>
    </div>

    <div class="actions">
        <button class="btn btn-retry" onclick="retryLogin()">重新登录</button>
        <button class="btn btn-home" onclick="goHome()">返回首页</button>
    </div>

    <div class="tips">
        <h3>登录提示</h3>
        <ul>
            <li>请确保用户名和密码输入正确</li>
            <li>注意大小写敏感</li>
            <li>检查Caps Lock键是否开启</li>
            <li>如忘记密码，请联系管理员</li>
        </ul>
    </div>

    <footer>
        <p>&copy; 2025 我们的网站. 保留所有权利.</p>
    </footer>
</div>

<script>
    function retryLogin() {
        // 这里可以重定向到登录页面
        window.location.href = 'index.html'; // 实际项目中应该是登录页面的地址
    }

    function goHome() {
        window.location.href = 'index.html';
    }

    // 页面加载完成后自动聚焦到重试按钮
    window.onload = function() {
        document.querySelector('.btn-retry').focus();
    }
</script>
</body>
</html>